<%--@elvariable id="millSelect" type="com.infitecs.eyas.mill.model.MillSelect"--%>
<%--@elvariable id="operateField" type="com.infitecs.eyas.power.model.OperateField"--%>
<%--
  Created by IntelliJ IDEA.
  User: Demon-pro
  Date: 2015/6/26
  Time: 9:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>
    <style>
        .popover {
            max-width: 600px;
        }
    </style>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <div class="form-body">
                                <!--内容开始-->
                                <div class="row">
                                    <!--锅炉参数开始-->
                                    <div class="col-md-12">
                                        <div class="col-md-12 margin-bottom-10">
                                            <h2>锅炉参数
                                           <span class="help-inline">
                                                  &nbsp; &nbsp; &nbsp; &nbsp;不引用锅炉数据
                                              <input type="checkbox" id="myglState"
                                                     name="myglState"
                                              <c:if test="${millSelect!=null&&operateField.myglState=='1'}">
                                                     checked
                                              </c:if> >
                                          </span>
                                            </h2>
                                        </div>
                                        <div class="col-md-12">

                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           name="myglLabel"      for="E3">炉膛漏风率</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline" id="E3"
                                                               name="mygl"
                                                               value="${millSelect.e3Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           name="myglLabel"      for="E4">炉膛出口过量空气系数</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               name="mygl"
                                                               value="${millSelect.e4Show}"
                                                               id="E4"/>
                                                    <span class="help-inline">
                                                        /
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           name="myglLabel"        for="E5">机械未完全燃烧损失</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               name="mygl"
                                                               value="${millSelect.e5Show}"
                                                               id="E5"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           name="myglLabel"        for="E6">锅炉燃煤量</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               name="mygl"
                                                               value="${millSelect.e6Show}"
                                                               id="E6"/>
                                                    <span class="help-inline">
                                                        t/h
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           name="myglLabel"        for="E54">锅炉一次风率</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               name="mygl"
                                                               value="${millSelect.e54Show}"
                                                               id="E54"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           name="myglLabel"       for="E67">冷风温度</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               name="mygl"
                                                               value="${millSelect.e67Show}"
                                                               id="E67"/>
                                                    <span class="help-inline">
                                                        ℃
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-20" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           name="myglLabel"        for="E87">热风温度</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               value="${millSelect.e87Show}" name="mygl"
                                                               id="E87"/>
                                                    <span class="help-inline">
                                                        ℃
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--锅炉参数结束-->
                                    <!--磨煤机选择开始-->
                                    <div class="col-md-12 margin-bottom-20">
                                        <div class="col-md-12 margin-bottom-10">
                                            <h2>磨煤机选择</h2>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           for="E7">中速磨类型</label>

                                                    <div class="col-md-8">
                                                        <select id="E7_select"
                                                                onchange="$('#E7').val($('#E7_select').val());Choose.updata('E7')">
                                                            <option value="1" <c:if test="${millSelect.e7 == 1}"> selected="selected"</c:if> >MPS</option>
                                                            <option value="2" <c:if test="${millSelect.e7 == 2}"> selected="selected"</c:if> >MP</option>
                                                            <option value="3" <c:if test="${millSelect.e7 == 3}"> selected="selected"</c:if> >ZGM</option>
                                                            <option value="4" <c:if test="${millSelect.e7 == 4}"> selected="selected"</c:if> >ZGM-I</option>
                                                            <option value="5" <c:if test="${millSelect.e7 == 5}"> selected="selected"</c:if> >ZGM-II</option>
                                                            <option value="6" <c:if test="${millSelect.e7 == 6}"> selected="selected"</c:if> >ZGM-III</option>
                                                            <option value="7" <c:if test="${millSelect.e7 == 7}"> selected="selected"</c:if> >MPS-HP-ll</option>
                                                            <option value="8" <c:if test="${millSelect.e7 == 8}"> selected="selected"</c:if> >Hp</option>
                                                            <option value="9" <c:if test="${millSelect.e7 == 9}"> selected="selected"</c:if> >E型</option>
                                                        </select>
                                                    </div>
                                                    <input id="E7" type="hidden" value="${millSelect.e7}">
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                           for="E8">磨煤机总台数</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               onblur="Choose.updata('E8')"
                                                               value="${millSelect.e8Show}"
                                                               id="E8"/>
                                                    <span class="help-inline">
                                                        台
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                           for="E9">备用磨煤机台数</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               onblur="Choose.updata('E9')"
                                                               value="${millSelect.e9Show}"
                                                               id="E9"/>
                                                    <span class="help-inline">
                                                        台
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                            >分离器类型</label>

                                                    <div class="col-md-8">
                                                        <select id="splitter_type">
                                                            <option value="1" <c:if test="${millSelect.splitterType == 1}">selected="selected"</c:if> >静态分离器</option>
                                                            <option value="2" <c:if test="${millSelect.splitterType == 2}">selected="selected"</c:if> >动态分离器</option>
                                                        </select>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                           for="E2">均匀性指数</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               value="${millSelect==null?'1.0':millSelect.e2}"
                                                               id="E2"
                                                                />
                                                    <span class="help-inline">
                                                        /
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                     id="E12Label"         for="E12">煤粉细度R<sub>90</sub></label>

                                                    <div class="col-md-6">
                                                        <input type="text" class="form-control input-inline calculable"
                                                               value="${millSelect.e12Show}"
                                                               id="E12"/>
                                                    <span class="help-inline">
                                                        /
                                                        <input type="checkbox" id="E12State"
                                                               name="E12State"
                                                        <c:if test="${millSelect!=null&&operateField.e12State=='1'}">
                                                               checked
                                                        </c:if> >
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                           for="E61">漏风系数</label>

                                                    <div class="col-md-8">
                                                        <input type="text" class="form-control input-inline"
                                                               value="<c:if test="${millSelect.e61==null}">0</c:if><c:if test="${millSelect.e61!=null}">${millSelect.e61}</c:if>"
                                                               id="E61"/>
                                                    <span class="help-inline">
                                                        /
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           id="E74Label"    for="E74">磨煤机出口温度</label>

                                                    <div class="col-md-6">
                                                        <input type="text" class="form-control input-inline"
                                                               onblur="Choose.updata('E74')"
                                                               value="${millSelect.e74Show}"
                                                               id="E74"/>
                                                        <span class="help-inline">
                                                        <input type="checkbox" id="E74State"
                                                               name="E74State"
                                                        <c:if test="${millSelect!=null&&operateField.e74State=='1'}">
                                                               checked
                                                        </c:if> >
                                                        </span>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                <div class="form-group">
                                                    <label class="control-label col-md-4" style="padding-left: 0"
                                                           id="E75Label"  for="E75">煤粉水分</label>

                                                    <div class="col-md-6">
                                                        <input type="text" class="form-control input-inline calculable"
                                                               onblur="Choose.updata('E75')"
                                                               value="${millSelect.e75Show}"
                                                               id="E75"/>
                                                    <span class="help-inline">
                                                        %
                                                        <input type="checkbox" id="E75State"
                                                               name="E75State"
                                                        <c:if test="${millSelect!=null&&operateField.e75State=='1'}">
                                                               checked
                                                        </c:if> >
                                                    </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-body">
                                         <div class="row">
                                             <div class="col-md-5">
                                             </div>
                                             <div class="col-md-7">
                                                 <button type="button" class="btn green" id="save"
                                                         onclick="Choose.chooseSave()">确定
                                                 </button>
                                                 <button type="button" class="btn green" id="nextPage"
                                                         onclick="Choose.cleanNext()">下一页
                                                 </button>
                                             </div>
                                             <!--/span-->
                                         </div>
                                         <!--/span-->
                                     </div>
                                </div>
                                <!--内容结束-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" id="caseId" value="${caseId}" name="caseId">
<input type="hidden" id="addFlag" value="${millSelect==null?"add":"edit"}" name="addFlag">
<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script src="<c:url value="/js/mill/Choose1.js"/>" type="text/javascript"></script>
<script>
    $(document).ready(function () {
        var caseId = $("#caseId").val();
        var step = '<%=request.getAttribute("step")==null?"":request.getAttribute("step")%>'
        if (caseId == "" || step != "") {
            var obj = getUrlByStep(step)
            toast.error(obj.message);
            setTimeout(function () {
                window.location.href = obj.url;
            }, 1200);
        }
        <%
         String message = (String) request.getAttribute("message");
         if(message!=null&&!"".equals(message)){
         if(message.equals("success")){
         %>
        toast.success("操作成功");
        <%
        }else{
        %>
        toast.error("<%=request.getAttribute("message")%>");
        <%
         }
            }
       %>
        Choose.init();
        Choose.myglStateClick($("#myglState"),1);
        Choose.E12StateClick($("#E12State"),1);
        Choose.E74StateClick($("#E74State"),1);
        Choose.E75StateClick($("#E75State"),1);
    })
</script>
</body>
</html>
